package com.gome.ocean.service.yugong;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.yugong.YgManagerBO;
import com.gome.ocean.dao.model.yugong.YgTaskBO;
import com.gome.ocean.dao.model.yugong.YuGongConfVO;

import java.util.List;

public interface YgTaskService {

    boolean insertYgTask(YgTaskBO ygTask);

    boolean insertYgTask(YuGongConfVO confVO);

    boolean removeYgTaskById(Long id);

    boolean updateYgTask(YgTaskBO ygTask);

    String startTask(YgManagerBO ygManager,YgTaskBO ygTask);

    String stopTask(YgManagerBO ygManager,YgTaskBO ygTask);

    String tailTaskInfo(YgTaskBO ygTask);

    YgTaskBO findYgTaskBOById(Long id);

    Page<YgTaskBO> findYgTaskBOsByTableName(String tableName, Integer pageNum, Integer pageSize);

    Page<YgTaskBO> findAllYgTaskBOs(Integer pageNum, Integer pageSize);

    Page<YgTaskBO> findAllYgTaskBOsByProject(Integer pageNum, Integer pageSize, String project);

    Page<YgTaskBO> findAllYgTaskBOsByProjectNames(Integer pageNum, Integer pageSize, List<String> projectNames);
}
